﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCIndexSearch.ascx.cs" Inherits="NJL.WebUsers.Controls.WUCIndexSearch" %>
    <script type="text/javascript">
        function fCheckSearch() {

            var hiddenId = '', count = 0;
            var checkbox = $("input[type=checkbox]");
            //alert(checkbox.length);
            for (var i = 0; i < checkbox.length; i++) {
                if (checkbox[i].checked == true) {
                    hiddenId += checkbox[i].value + ",";
                    count++;
                }
            }
            //不检查是否选择服务类型了
            return true;

            if (count == 0) {
                alert('请选择要玩什么？至少选择一个哦！');
                return false;
            }

        }

        function fClearInput() {
            if ($('#<%=txtKeywords.ClientID %>').val() == '试试输入你喜欢的活动，快速找到最好玩的！') {
                $('#<%=txtKeywords.ClientID %>').val('');
            }
        }
        function fLoadInput() {
            if ($('#<%=txtKeywords.ClientID %>').val() == '') {
                $('#<%=txtKeywords.ClientID %>').val('试试输入你喜欢的活动，快速找到最好玩的！');
            }
        }
    </script>
        <div class="cont indexSearch" style="display:block">
           
           
            <div class="websiteinfo_index">
                <!--农家乐信息-->
                <div class="websiteinfo ">
                    <div class="titleWeb">
                    </div>
                    <div class="cont">
                        <div class="webinfo">
                            <p><strong><%=CITY_COUNT %></strong>个城市/地区</p>
                            <p><strong><%=COMPANY_COUNT.ToString("###,###,###")%></strong>农家乐，<strong><%=USER_COUNT.ToString("###,###,###")%></strong>个用户。</p>
                            <p><strong><%=LOCAL_COLOR_COUNT.ToString("###,###,###")%></strong>个特产，<strong><%=ATTRACTION_COUNT.ToString("###,###,###")%></strong>个景点。</p>
                        </div>
                        <p class="shenq"><a href="/ditu.html" target="_blank">我不在其中，我要加入</a></p>
                    </div>
                </div>
            </div>
            <div class="leftside" style="width:700px; overflow:hidden;">
                <!--你想玩什么-->
                <div>
                    <div class="index_title">
                      
                        <h2>
                            <img src="/Images/title_02.jpg" alt="您想玩什么？" /></h2>
                         <span class="index_pop float_r">
                            <s class="pop_l"></s>
                            <a target="_blank" href="/Play.aspx">不知道去哪里玩？看看别人都在玩啥~现在就去找</a>
                            <s class="pop_r"></s>
                        </span>
                        
                    </div>
                    <div class="playlist">
                        <div style="float:left;width:75px">
                            <p><strong>景区活动</strong></p>
                            <p><strong>娱乐设施</strong></p>
                            <p><strong>服务项目</strong></p>
                        </div>
                        <div style="float:left;width:600px">
                            <p>
                            <asp:CheckBoxList ID="cblServiceType" runat="server" 
                                    RepeatDirection="Horizontal" Width="100%"
                                    RepeatLayout="Flow" RepeatColumns="7">
                                </asp:CheckBoxList>
                            </p>
                        </div>
                        <div style="float:left;width:100%">
                            <p class="searchbox">
                                <asp:TextBox ID="txtKeywords" Text="试试输入你喜欢的活动，快速找到最好玩的！" runat="server" CssClass="input" MaxLength="40" size="80" Width="550px" onblur="fLoadInput()" onfocus="fClearInput()" />
                                <asp:Button ID="ibtnSearch" runat="server" CssClass="search" OnClientClick="return fCheckSearch();" onclick="ibtnSearch_Click" />
                            </p>
                        </div>
                    </div>
                </div>
            </div>

            <div class="cleanFlex" style="height:1px; overflow:hidden;"></div>
        </div>
